'use strict';

function choose_divisible_integer(collection_a, collection_b) {

  let arr=[];
  for(let num_a of collection_a){
    for(let num_b of collection_b)
      if(num_a%num_b==0)
        arr.push(num_a);
  }
  return arr;
  
}

module.exports = choose_divisible_integer;
